package com.woniuxy.exam.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.woniuxy.commons.entity.QuestionBank;
import com.woniuxy.exam.mapper.QuestionBankMapper;
import com.woniuxy.exam.service.QuestionBankService;

import java.util.Collection;
import java.util.List;

/**
@author zouyang
@date 2020/7/27 - 14:45
*/
@Service
public class QuestionBankServiceImpl implements QuestionBankService{

    @Resource
    private QuestionBankMapper questionBankMapper;

    @Override
    public List<QuestionBank> selectAll() {
        return questionBankMapper.selectAll();
    }

    @Override
    public List<QuestionBank> selectByPid(Integer pid) {
        return questionBankMapper.selectByPid(pid);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return questionBankMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(QuestionBank record) {
        return questionBankMapper.insert(record);
    }

    @Override
    public int insertSelective(QuestionBank record) {
        return questionBankMapper.insertSelective(record);
    }

    @Override
    public QuestionBank selectByPrimaryKey(Integer id) {
        return questionBankMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(QuestionBank record) {
        return questionBankMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(QuestionBank record) {
        return questionBankMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<QuestionBank> selectAllPidGreaterThan0() {
        return questionBankMapper.selectAllPidGreaterThan0();
    }

    @Override
    public List<QuestionBank> selectByAll(QuestionBank questionBank) {
        return questionBankMapper.selectByAll(questionBank);
    }

    @Override
    public int deleteByIdIn(Collection<Integer> idCollection) {
        return questionBankMapper.deleteByIdIn(idCollection);
    }

}
